package com.n9.qq.android.push;

import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;

/**
 * @author ice
 * @since 2019/2/20 9:15
 */
public class PushResp extends JceStruct {
    public byte[] jcebuf = null;
    public long lSeq = 0L;
    public int type = 0;

    public PushResp() {
    }

    public PushResp(int type, long lSeq, byte[] jcebuf) {
        this.type = type;
        this.lSeq = lSeq;
        this.jcebuf = jcebuf;
    }

    @Override
    public void readFrom(JceInputStream var1) {
        this.type = var1.read(this.type, 1, true);
        this.lSeq = var1.read(this.lSeq, 2, true);
        if (jcebuf == null) {
            jcebuf = (new byte[1]);
        }

        this.jcebuf = var1.read(jcebuf, 3, false);
    }

    @Override
    public void writeTo(JceOutputStream var1) {
        var1.write(this.type, 1);
        var1.write(this.lSeq, 2);
        if (this.jcebuf != null) {
            var1.write(this.jcebuf, 3);
        }

    }
}
